import random



class RandomNumber:
    def __init__(self, create_n, scope=[0, 100]):
        self.data = []
        while create_n:
            create_n -= 1
            self.data.append(random.randint(scope[0], scope[1]))

    def add_numb(self, add_n, scope=[1, 100]):
        while add_n:
            add_n -= 1
            self.data.append(random.randint(scope[0], scope[1]))

    def get_dct(self, dct_numb):
        n = dct_numb if dct_numb <= (len(self.data) // 2) else (len(self.data) // 2)
        dct = []
        while n:
            n -= 1
            dct.append((self.data[n * 2], self.data[n * 2 + 1]))
        return dct


n = RandomNumber(10)
print(len(n.data),n.data)

n.add_numb(10,[200,300])
print(len(n.data),n.data)

dct = n.get_dct(5)
print(dct)

dct = n.get_dct(30)
print(dct)